"use strict";
const electron = require("electron");
const path = require("path");
const createWindow = () => {
  const win = new electron.BrowserWindow({
    webPreferences: {
      preload: path.join(__dirname, "./preload.js")
      // 需要引用js文件
    },
    autoHideMenuBar: true
  });
  win.loadURL("http://localhost:5173");
};
electron.app.whenReady().then(() => {
  createWindow();
});
